// vue3版本对应的路由4版本的变动
import { createRouter, createWebHashHistory } from 'vue-router'
const router = createRouter({
  history: createWebHashHistory(),
  routes: [
    {
      path: '/',
      name: 'home',
      redirect: '/index'
    },
    {
      path: '/index',
      name: 'index',
      component: () => require('../views/index/index.vue')
    },
    {
      path: '/table',
      name: 'table',
      component: () => require('../views/table/index.vue')
    }
  ]
})
export default router